#pragma once
#include "SocketStream.h"
#include "emugl/common/mutex.h"
#include "emugl/common/thread.h"

class RenderServer : public emugl::Thread
{
public:
    static RenderServer *create();

    virtual ~RenderServer();

    virtual intptr_t main();

    bool isExiting() const { return m_exiting; }

private:
    RenderServer();

private:
    emugl::Mutex m_lock;
    SocketStream *m_listenSock;
    bool m_exiting;
};
